package com.study.tiger.controller;

import com.study.tiger.service.StudyService;
import com.study.tiger.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api")
public class StudyController {

    @Autowired
    StudyService studyService;

    @GetMapping("/test")
    public ResponseResult<List<Map<String,Object>>> testResponseResult(){
        return ResponseResult.success(studyService.getList());
    }
}
